package com.health.common;

public class Constants {

    public static class Common {
        public final static String ERROR_MESSAGE = "errorMessage";
        public final static String IS_DELETED = "isDeleted";

    }

    public static class Session {
        public final static String USER = "user";
        public final static String MENUS = "menus";
        public final static String SAFE_USER = "_$user";
    }

    public static class Privilege {
        /**
         * 创建一个新的病历
         */
        public static final int MEDICAL_RECORD_CREATE = 2;

        /**
         * 查看病历
         */
        public static final int MEDICAL_RECORD_LIST = 3;

        /**
         * 修改病历
         */
        public static final int MEDICAL_RECORD_EDIT = 4;

        /**
         * 删除病历
         */
        public static final int MEDICAL_RECORD_DELETE = 5;

        /**
         * 新增用户
         */
        public static final int USER_CREATE = 7;

        /**
         * 查看用户
         */
        public static final int USER_LIST = 8;

        /**
         * 修改用户
         */
        public static final int USER_EDIT = 9;

        /**
         * 删除用户
         */
        public static final int USER_DELETE = 10;

        public static final int ROLE_ADMIN = -6;

        public static final int ASSIGN_ROLE_TO_USER = -5;

        /**
         * 制定授权策略、定义用户分类、业务数据分类和数据查询
         */
        public static final int POLICY_ADMIN = -4;

    }

}
